package com.bawei.module_mine.model.service

import com.bawei.lib_net.RetrofitFactory
import com.bawei.module_mine.model.api.AddressApi
import com.bawei.module_mine.model.entity.AddAddressRequest

class AddressService {
    private val api by lazy { RetrofitFactory.getRetrofitFactory().create(AddressApi::class.java) }
    suspend fun getAddressList() = api.getAddressList()
    suspend fun addAddress(body: AddAddressRequest) = api.addAddress(body)
    suspend fun updateAddress(body: Map<String, Any?>) = api.updateAddress(body)
    suspend fun deleteAddress(addressId: Long) = api.deleteAddress(addressId)
} 